package com.example.smartcane;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class LogoActivity extends Activity implements OnClickListener{

	Button logo_btn_start;
	int check_connection = 0;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_logo);
		
		logo_btn_start = (Button)findViewById(R.id.logo_btn_start);
		logo_btn_start.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.logo_btn_start:
			if(check_connection == 0){
				Intent it = new Intent(LogoActivity.this, ConnectionActivity.class);
				startActivity(it);
				finish();
			}
			else{
				Intent it = new Intent(LogoActivity.this, MainActivity.class);
				startActivity(it);
				finish();
			}			
			break;
		}
	}
}
